projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac5b94a
)
golang: Fix host build compatibility with GCC 15
author
Jeffery To
<
[email protected]
>
Thu, 5 Jun 2025 13:37:53 +0000
(21:37 +0800)
committer
Josef Schlehofer
<
[email protected]
>
Wed, 24 Sep 2025 10:15:55 +0000
(12:15 +0200)
Fixes https://github.com/openwrt/packages/issues/26446.
Signed-off-by: Jeffery To <
[email protected]
>
(cherry picked from commit
f7d2ebfe3784ab793c1db0d7bb6bbf98b7dbc064
)
lang/golang/golang/Makefile
patch
|
blob
|
history
diff --git
a/lang/golang/golang/Makefile
b/lang/golang/golang/Makefile
index d71cc7c82c8593e07a36a15ed60e41e54d42295f..fc12f03e51489b49b9c5c06bfb43cfe8c229a708 100644
(file)
--- a/
lang/golang/golang/Makefile
+++ b/
lang/golang/golang/Makefile
@@
-12,7
+12,7
@@
GO_VERSION_PATCH:=12
PKG_NAME:=golang
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
-PKG_RELEASE:=
1
+PKG_RELEASE:=
2
GO_SOURCE_URLS:=https://dl.google.com/go/ \
https://mirrors.ustc.edu.cn/golang/ \
@@
-267,6
+267,7
@@
endef
define Host/Compile
$(call GoCompiler/Bootstrap/Make, \
$(HOST_GO_VARS) \
+ CC="$(HOSTCC_NOCACHE) -std=gnu17" \
)
$(call GoCompiler/Bootstrap-1.17/Make, \